import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { CommonModule, registerLocaleData } from '@angular/common'
import { ErrorTipComponent } from './error-tip.component';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);

@NgModule({
  declarations: [ErrorTipComponent],
  imports: [
    BrowserModule,
    CommonModule,
    NgZorroAntdModule,
    FormsModule,
    HttpClientModule
  ],
  providers   : [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  exports: [ErrorTipComponent]
})
export class ErrorTipModule { }
